home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / os2 / xyos2shl.zip / O2.PM < prev    next >
Text File  |  1996-06-03  |  9KB  |  168 lines

  1. «GLA»
  2. {{5Help4o2}} Help for O2.PM [XYOS2SHL.ZIP]
  3. «SV01,«FL»«LM2DI»«RM78DI»
  4. O2.PM v1.0c - [Part of XYOS2SHL.ZIP]  R.J.Holmgren  6/3/96
  5. Launch any OS/2|DOS|WIN3x process from the XyWrite command line
  6.  
  7. Usage:
  8.    U2:  o2 [STARTOS2 parameters] [O2 options] command [args]<Helpkey>
  9.   RUN:  run o2.pm ...same as above...<cr>
  10. "command" is either a filename (preferably fully qualified!) or
  11.   a (case-sensitive!) WPS objectID like "<WP_CXEDITOR>"
  12. Issue special command "O2 /NV" to edit|see your list of O2 aliases
  13. Aliases may contain replaceable "%1 %2 ... %n" parameters
  14.  
  15. Set in frame  7B 7B5o2 7D 7D:
  16.   USER VARIABLE (OS/2 BootDriveLetter)
  17.   DEFAULT PARAMETERS
  18.     Defaults are overridden by Command Line Parameters and Options
  19.  
  20. STARTOS2 Parameters:
  21.   (/DOS and /PM are useful ONLY from DOS command line, not from XyWrite)
  22.   Execute HELP START for a description of most STARTOS2 options
  23.   ├─┬─────────┬───┬──────┬───┬──────┬───┬────────┬───┬────────┬...
  24.     │"Program │   ├─ /C ─┤   ├─ /F ─┤   └─[/DOS]─┘   ├─ /FS  ─┤
  25.     └─ Title"─┘   ├─ /K ─┤   └─ /B ─┘                ├─ /WIN ─┤
  26.                   └─ /N ─┘                           └─[/PM ]─┘
  27.  
  28. ...─┬────────┬───┬──────────────────────────┬───┬────────────────┬...
  29.     ├─ /MAX ─┤   └─ /Xpos,Ypos,Xsize,Ysize ─┘   └─ /M:icon_file ─┘ 
  30.     └─ /MIN ─┘     Pôsition of Desktop window      ^               
  31.                             Icon to display if procêss is Minimized
  32.  
  33. O2 Options:
  34. ...──┬─┬─┬─┬─┬─────────────┬──...
  35.      │ │ │ │ │ └─ /E ──────┤  ECHO ON (default=ECHO OFF)
  36.      │ │ │ │ └─ /H ────────┤  Halt before exit (view results)
  37.      │ │ │ └─ /I ──────────┤  Ignore O2-ALIAS.DAT (omit alias query)
  38.      │ │ └─ /R ────────────┤  execute concatenated commands as Rexx
  39.      │ └─ /L:launch_title ─┤  title of process|object being Launched
  40.      └─ /P:exit_process ───┘  on termination, switch to Exit_Process
  41.  
  42. Command [arguments]:
  43. ...─┬───(defaults to COMSPEC, e.g. CMD.EXE)───────────┬──┤
  44.     └── command to launch ───┬─────────────────────┬──┘
  45.                              └─ command arguments ─┘
  46.  
  47. Following switches accept spaces in "long parameters"
  48.     (enclose spacey switches in "quotation marks", per below)
  49.   "Process Title"                  (STARTOS2 parameter)
  50.   /L:"launch title"                (O2 parameter)
  51.   /P:"exit process"                (O2 parameter)
  52.   "command to execute"
  53.   "long command arguments"
  54.   "runtime replaceable arguments"  (%1 %2...%n in O2-ALIAS.DAT aliases)
  55.  
  56. Aliases (Command Synonyms)
  57. -------
  58. Define shorthand STARTOS2_options+commands+arguments in
  59.   file BootDrive:\OS2\MDOS\O2-ALIAS.DAT
  60. Examples are present in the file already!
  61. Aliases do NOT accept spaces
  62.  
  63. Install: O2.PM        in U2, or RUN O2.PM freestanding
  64. -------  O2.CMD       in BootDrive:\OS2\MDOS
  65.          O2-ALIAS.DAT in BootDrive:\OS2\MDOS
  66.          PMSW.EXE     in BootDrive:\OS2\MDOS
  67.          STARTOS2.EXE in BootDrive:\OS2\MDOS
  68.  
  69. «FC»
  70. For Use by RENUMBER.PM:
  71. Renumber O2.PM in PACK mode
  72. Default Save/Get Range=[00|50] 661-687
  73. OPTIONs (2): FREEZE 50; LEFT$ %
  74. «FL»«LM»»
  75. {{m}}
  76.  
  77. {{5o2}} O2.PM v1.0 - Start OS/2 [DOS|WIN3x] process from XyWrite
  78. «SX00,«IS50»»«GLA»;*;
  79. ;*;
  80. ;*;
  81. ;*;         USER VARIABLES - Toggle eXPanded view to set Save/Gets
  82. ;*;         ------------------------------------------------------
  83. ;*;          ⁿÖ OS/2 BootDriveLetter, e.g. "C"
  84. «LBA»«SV661,»;*;
  85. ;*;
  86. ;*;        DEFAULT PARAMETERS
  87. ;*;        ------------------
  88. ;*; Default STARTOS2 parameters; overriding one param with a
  89. ;*;   specific CMline instruction does NOT override the others.
  90. ;*; Parameters /DOS and /PM have no meaning in O2, and are
  91. ;*;   ignored (but /DOS and /PM apps *can* be executed).
  92. ;*; ALL parameters named below can be enabled from the CMline also
  93. ;*;
  94. ;*; Default "Process Title"
  95. «SV662,"CMD Full_Screen"»;*;
  96. ;*;
  97. ;*; Select /C, /K, or /N
  98. «SV663,/C»;*;
  99. ;*;
  100. ;*; Select /F or /B (Foreground|Background operation)
  101. «SV664,/F»;*;
  102. ;*;
  103. ;*; Select /FS or /WIN (FullScreen|WINdowed)
  104. ;*;  [N.B.: /DOS and /PM are meaningless]
  105. «SV665,/FS»;*;
  106. ;*;
  107. ;*; Select /MAX or /MIN (MAXimized|MINimized)
  108. «SV666,/MAX»;*;
  109. ;*;
  110. ;*;  /M:icon_file (display icon_file when process minimized)
  111. «SV667,»;*; ICO file
  112. ;*;
  113. ;*;  /E (turn ECHO ON during execution)
  114. ;*;  /H (Halt before exiting shell -- e.g. view results of command)
  115. ;*;  /I (Ignore O2-ALIAS.DAT, do not check whether input is an alias)
  116. ;*;  /R (execute "Command" as Rexx)
  117. ;*;  (separate params with spaces, e.g.  AESV668,/E /H AF; default=none)
  118. «SV668,»;*;
  119. ;*;
  120. ;*; Default exit_Process (after O2 shell routine)
  121. ;*;  [N.B.: SW.CMD aliases are legal]
  122. «SV669,/P:XyWrite»;*;
  123. ;*;
  124. ;*;
  125. «IF«VA|661»==1&"ABCDEFGHIJKLMNOPQRSTUVWXYZ"≡@UPR(«IS661»)»;*;
  126.  éº é½(es 1)«SX670,«IS00»»«SV671,  »«LBB»«IF«IS670»≡«IS671»»«SV672,»«SV673,»«XS670,671,672,,673»«SX670,«IS672»+" "+«IS673»»«GLB»«EI»;*; Replace all double spaces with one space
  127. ;*;
  128. «SV671, »«SX673,«IS670»»«IF" "ε«IS670»==0»«XS670,671,672,,673»«EI»;*; Remove leading space
  129. ;*;
  130. «IF«VA|673»>0»«SX670,«IS673»+" "»«EI»;*; Add trailing space
  131. ;*;
  132. «SV674,"»«SV675," »«IF"/I "ε@UPR(«IS670»)<0&"/R "ε@UPR(«IS670»)<0&"/I"ε@UPR(«IS668»)<0&"/R"ε@UPR(«IS668»)<0»«SX676,1»«IF@UPR(«IS670»)<>"/NV "»«SX676,0» üA«EI»«SX673,«IS661»+":\OS2\MDOS\O2-ALIAS.DAT"»«SX677,0»«SX678,«VA$WN»» é½gofile «PV673» é«IF«ER»»«IF«VA$WA»<1»«PRNo Window»«GLJ»«EI»«SX677,1» é½ca/100 «PV673» é«EI»«IF@NOT(«ER»)» é½wait é ü¡ Ç±«IF«PV676»>0» é½se/f   2D é ü1«GLJ»«EI»;*;
  133. ;*;
  134. «SX673,«IS670»»«IF" "ε«IS670»>0»«XS670,671,673,,679»«IF«VA|679»>0»«SX679,«IS679»+" "»«EI»«EI»«SX673,"
  135. "+«IS673»+"="» é½se ⁿ«PV673»ⁿ é«IF@NOT(«ER»)» ü= ü  Çk é½se/f   └¢ é Çk«SV670» ü «SX670,«IS670»+" "»«SX680,0»«SV681,»«SV682,»«SU683,«SX680,«PV680»+1»«SX673,"%"+«IS680»»»«GT683»«IF«IS670»≡«IS673»»«SV684,  »«LBC»«IF«VA|679»<2»«SV679,»«LBD»«SV685,»«SV686,»«XS670,673,685,,686»«SX681,«IS681»+«IS685»»«SX670,«IS686»»«GT683»«IF«IS670»≡«IS673»»«GLD»«EI»«EI»«IF"  "ε«IS679»>0»«XS679,684,685,,686»«SX679,«IS685»+" "+«IS686»»«GLC»«EI»«IF" "ε«IS679»==0»«XS679,671,,685,686»«SX679,«IS686»»«EI»«LBE»«IF«IS679»≡" "»«IF«IS670»≡«IS673»»«SV682,»«SV684,»«SV685,»«SV686,»«XS670,673,685,,686»«IF«IS674»ε«IS679»==0»«SV687,»«XS679,674,,684,687»«SV684,»«SV682,»«XS687,675,684,,682»«SX684,«IS674»+«IS684»+«IS674»»«EI»«IF«IS674»ε«IS679»<>0»«XS679,671,684,,682»«EI»«SX681,«IS681»+«IS685»+«IS684»»«SX670,«IS686»»«SX679,«IS682»»«GT683»«GLE»«EI»«EI»«LBF»«IF«IS670»≡«IS673»»«SV686,»«XS670,673,685,,686»«SX670,«IS686»»«GT683»«GLF»«EI»«SX670,«IS681»+«IS686»+" "+«IS682»»«EI»«EI»«IF«PV677»>0»«SX673,«VA$WN»» é½(ab/nv)«IF«VA$WN»==«PV673»&«VA$WO»>1» é½(rs)«EI»«EI» é½(func #«PV678»)«EI»«IF«PV676»>0»«GLI»«EI» ü? ü;«EI»;*;
  136. ;*;
  137. «SV672,/DOS|/FS|/F|/K|/M:|/MAX|/MIN|/N|/PM|/WIN|/X|/B|/C|/E|/H|/I|/L:"|/L:|/O|/P:"|/P:|/R|»«SV680,|»«SX681,«IS662»»«SV682,»;*; Setup strings
  138. ;*;
  139. «SU683,«SV684,»«IF«IS674»ε«IS670»==0»«XS670,674,,684,685»«SV670,»«XS685,675,684,,670»«EI»»«SU686,«SX684,«IS672»»«SX685,@UPR(«IS676»)»«LBG»«XS684,680,673,,679»«IF«IS673»ε«IS685»==0»«EX»«EI»«IF«VA|679»>0»«SX684,«IS679»»«GLG»«EI»«SV673,»»;*; SUbroutines
  140. ;*;
  141. «GT683»«IF«VA|684»>0»«SX681,«IS674»+«IS684»+«IS674»»«EI»;*; Get "Title"
  142. ;*;
  143. «LBH»«SV687,»«XS670,671,676,,687»«GT686»;*; Get switch_type into «SV673»
  144. ;*;
  145. «IF«VA|673»>0»«IF«IS673»≡«IS674»»«SX676,«IS676»+" "+«IS687»»«XS676,673,,684,685»«XS685,675,676,,684»«SX676,«IS673»+«IS676»+«IS674»»«SX687,«IS684»»«EI»;*; If quote in «SV673», get "string"
  146. ;*;
  147. «IF«IS673»ε«IS672»<48»«SX681,«IS681»+" "+«IS676»»«EI»;*; Get STARTOS2 params into «SV681»
  148. ;*;
  149. «IF«IS673»ε«IS672»>43»«SX682,«IS682»+" "+«IS676»»«EI»;*; Get O2.CMD switches into «SV682»
  150. ;*;
  151. «SX670,«IS687»»«IF«VA|687»>0»«GLH»«EI»«EI»;*;
  152. ;*;
  153. «GT683»«IF«VA|684»>0»«SX684,«IS674»+«IS684»+«IS674»»«SX672,«IS670»»«EI»;*; Get "command to execute" into «SV684»
  154. ;*;
  155. «IF«VA|684»<1»«SV672,»«SV684,»«XS670,671,684,,672»«EI»;*; Get command into «SV684»
  156. ;*; Get arguments into «SV672»
  157. ;*;
  158. «SX680,@UPR(«IS681»)»«IF"/C"ε«IS680»<0&"/K"ε«IS680»<0&"/N"ε«IS680»<0»«SX681,«IS681»+" "+«IS663»»«IF«IS663»≡"/C"»«SX682,«IS682»+" /C"»«EI»«EI»«IF"/F"ε«IS680»<0&"/B"ε«IS680»<0»«SX681,«IS681»+" "+«IS664»»«EI»«IF"/FS"ε«IS680»<0&"/WIN"ε«IS680»<0&"/PM"ε«IS680»<0»«SX681,«IS681»